package cn.bgs.pojo.vo;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import org.springframework.format.annotation.DateTimeFormat;

import java.time.LocalDateTime;

/**
 * @author ：Lenovo Ysr
 * @date ：Created in 2022/6/16 21:05
 * @description ：description
 * @modified By： modify
 * @version: 1.0
 */

@Data
public class VehicleCarVo{

    private static final long serialVersionUID = 1L;

    @ApiModelProperty(value = "车辆自增id")
    @TableId(value = "vehicle_car_id", type = IdType.AUTO)
    private Integer vehicleCarId;

    @ApiModelProperty(value = "用户id")
    private Integer userId;

    @ApiModelProperty(value = "车牌号")
    private String vehicleNumber;

    @ApiModelProperty(value = "车辆品牌")
    private String vehicleBrand;

    @ApiModelProperty(value = "车辆型号")
    private String vehicleModel;

    @ApiModelProperty(value = "车辆颜色")
    private String vehicleColor;

    @ApiModelProperty(value = "车辆图片")
    private String fileUrl;

    @ApiModelProperty(value = "是否购买月卡（是、否）")
    private String monthCardState;

    @ApiModelProperty(value = "月卡生效时间")
    private LocalDateTime effectTime;

    @ApiModelProperty(value = "月卡到期时间")
    private LocalDateTime dueTime;

    @ApiModelProperty(value = "是否是临时停车（是、否）")
    private String temporaryParkingState;

    @ApiModelProperty(value = "车辆状态（已绑定，未绑定）")
    private String vehicleState;

    @ApiModelProperty(value = "备注")
    private String remark;

    @DateTimeFormat(pattern = "yyyy-MM-dd ")//DateTimeFormat 是入参格式化；
    @JsonFormat(pattern = "yyyy-MM-dd", timezone = "GMT+8")//JsonFormat是出参格式化。
    @ApiModelProperty(value = "创建时间")
    private LocalDateTime createTime;

    @DateTimeFormat(pattern = "yyyy-MM-dd ")//DateTimeFormat 是入参格式化；
    @JsonFormat(pattern = "yyyy-MM-dd", timezone = "GMT+8")//JsonFormat是出参格式化。
    @ApiModelProperty(value = "修改时间")
    private LocalDateTime updateTime;

    @ApiModelProperty(value = "删除标志（y是删除 n是未删除）")
    private String deleteFlag;

}
